package com.kehutong.charge.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.kehutong.charge.util.enums.ChargeBillStatusEnum;
import com.kehutong.charge.util.enums.CommonEnum;
import com.kehutong.charge.util.enums.ResidentsTypeEnum;
import com.kehutong.common.entity.DataEntity;
import com.kehutong.common.util.BigDecimalUtils;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

import java.math.BigDecimal;

/**
 * @author: jian Ye
 * @create: 2021/8/19
 **/
@ExcelIgnoreUnannotated
@ColumnWidth(15)
public class ChargeBillHouseExcelVO {

    @ColumnWidth(25)
    @ExcelProperty(value="账单编号")
    private String houseBillNo;

    @ColumnWidth(35)
    @ExcelProperty(value="账单地址")
    private String billAddress;

    @ExcelProperty(value="账单年月")
    private String billYearMonth;

    @ExcelProperty(value="缴费人")
    private String chargeName;

    @ExcelProperty(value="账单金额(元)")
    private String billAmount;

    private ChargeBillStatusEnum chargeStatus;

    @ExcelProperty(value="缴费状态")
    private String chargeState;

    private ChargeBillStatusEnum billStatus;

    @ExcelProperty(value="账单状态")
    private String billState;

    @ExcelProperty(value="违约天数(天)")
    private Integer penaltyDays;

    public String getBillAmount() {
        return billAmount;
    }

    /**特殊处理*/
    public void setBillAmount(String billAmount) {
        this.billAmount = BigDecimalUtils.parse(billAmount);
    }

    public String getHouseBillNo() {
        return houseBillNo;
    }

    public void setHouseBillNo(String houseBillNo) {
        this.houseBillNo = houseBillNo;
    }

    public String getBillYearMonth() {
        return billYearMonth;
    }

    public void setBillYearMonth(String billYearMonth) {
        this.billYearMonth = billYearMonth;
    }

    public String getBillAddress() {
        return billAddress;
    }

    public void setBillAddress(String billAddress) {
        this.billAddress = billAddress;
    }

    public String getChargeName() {
        return chargeName;
    }

    public void setChargeName(String chargeName) {
        this.chargeName = chargeName;
    }

    public ChargeBillStatusEnum getChargeStatus() {
        return chargeStatus;
    }

    public void setChargeStatus(ChargeBillStatusEnum chargeStatus) {
        this.chargeStatus = chargeStatus;
    }

    public String getChargeState() {
        return chargeStatus.getDesc();
    }

    public ChargeBillStatusEnum getBillStatus() {
        return billStatus;
    }

    public void setBillStatus(ChargeBillStatusEnum billStatus) {
        this.billStatus = billStatus;
    }

    public String getBillState() {
        return billStatus.getDesc();
    }
    public Integer getPenaltyDays() {
        return penaltyDays;
    }

    public void setPenaltyDays(Integer penaltyDays) {
        this.penaltyDays = penaltyDays;
    }
}
